const random = require("./random");
const tryCatch = require("./trycatch");
// const init = async () => {
//   try {
//     let res = await random(3000+'');
//     console.log(res);\
//   } catch (error) {
//     console.error(error);
//   }
// };

// console.log(random(3000 + ""))
const init = async () => {
  let [error, result] = await tryCatch(random(3000 ));
  if (error) {
    console.error("myerror：", error);
    return;
  }
  console.log(result);
};

init();
